package com.swa99ylum.pjv.corrector;

import java.util.Map;

import com.swa99ylum.pjv.corrector.Corrector;

/** <h1>简单 修正器</h1>
<br> 将 value 修正为 指定的 值
<br>    
 */
public class SimpleCorrector extends Corrector {
	
	private Object specified;
	
	public SimpleCorrector(Object specified) {
		super();
		this.specified = specified;
	}

	@Override
	public void doCorrect(Object rootObject, String[] nodePath, String nodeName, Map<String, Object> parentValue, Object incorrectValue) {
		
//		JSONPath.set(rootObject, nodePath, specified);
		parentValue.put(nodeName, specified);
		
	}

}
